package com.study.common.baidu.map.domain;

import lombok.Data;

import java.util.List;

@Data
public class BaiduMapInverseResponse {

    private int status;
    private Result result;


    @Data
    public static class Result {
        private Location location;
        private String formatted_address;
        private Edz edz;
        private String business;
        private AddressComponent addressComponent;
        private List<Poi> pois;
        private List<Road> roads;
        private List<PoiRegion> poiRegions;
        private String sematic_description;
        private String formatted_address_poi;
        private int cityCode;


    }


    @Data
    public static class Location {
        private double lng;
        private double lat;

    }

    @Data
    public static class Edz {
        private String name;

    }

    @Data
    public static class AddressComponent {
        private String country;
        private int country_code;
        private String country_code_iso;
        private String country_code_iso2;
        private String province;
        private String city;
        private int city_level;
        private String district;
        private String town;
        private String town_code;
        private String distance;
        private String direction;
        private String adcode;
        private String street;
        private String street_number;

    }

    @Data
    public static class Poi {

    }

    @Data
    public static class Road {

    }

    @Data
    public static class PoiRegion {

    }
}
